<script id="template_campaign_reporter" type="text/html">
    <table class="metrotable overviewtable_plan" border="0" cellpadding="0" cellspacing="0">
        <colgroup>
            <col class="con1" width="5%">
            <col class="con0" width="5%"><!-- 状态 -->
            <col class="con1" width="15%"><!-- 推广计划名称 -->
            <!-- <col class="con0" width="10%"> --><!-- 计划类型 -->
            <!-- <col class="con0" width="10%"> --><!-- 分时折扣 -->
            <col class="con1" width="5%"><!-- 日限额 -->
            <col class="con1" width="7%"><!-- 展现量 -->
            <col class="con0" width="7%"><!-- 点击量 -->
            <col class="con1" width="7%"><!-- 点击率 -->
            <col class="con0" width="7%"><!-- 花费 -->
            <col class="con1" width="7%"><!-- 投入产出比 -->
            <col class="con0" width="8%"><!-- 点击转化率 -->
        </colgroup>
        <thead>
        <tr>
            <th class="head1 nolborder">
                <!--				<a id="selectAll" class="btn btn3 btn_unselectall btn_selectall tooltips" href="javascript:void(0);" title="全选">全选</a>-->
            </th>
            <th class="head0"><strong>状态</strong></th>
            <th class="head1"><strong>推广计划名称</strong></th>
            <!-- <th class="head1">计划类型</th> -->
            <!-- <th class="head0">分时折扣</th> -->
            <th class="head1"><strong>日限额</strong></th>
            <th class="head1"><strong>展现量</strong></th>
            <th class="head0"><strong>点击量</strong></th>
            <th class="head1"><strong>点击率</strong></th>
            <th class="head0"><strong>花费</strong></th>
            <th class="head1"><strong>投入产出比</strong></th>
            <th class="head0"><strong>点击转化率</strong></th>
        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
</script>
<script id="template_campaign_reports" type="text/html" >
    <% for(var i = 0; i < data.length; i ++) { %>
    <% if (data[i].online_status == 'online') { %>
    <tr data-campaign_id="<%= data[i].campaign_id %>">
        <td>
            <%if(select_type == 'checkbox'){%>
            <input type="checkbox" style="margin-left:13px;" class="select_items" data-campaign_id="<%= data[i].campaign_id %>" name="select_items">
            <%}else{%>
            <input type="radio" style="margin-left:13px;" class="select_items" data-campaign_id="<%= data[i].campaign_id %>" name="select_items">
            <%}%>
        </td>
        <td class="green"><strong>推广中</strong></td>
        <td><%= data[i].title %></td>
        <td><%= data[i].budget %>元</td>
        <td><%= data[i].report.impressions %></td>
        <td><%= data[i].report.click %></td>
        <td><%= data[i].report.ctr %>%</td>
        <td>￥<%= data[i].report.cost %></td>
        <td><%= data[i].report.roi %></td>
        <td><%= data[i].report.cvr %></td>
    </tr>
    <% } %>
    <%}%>
</script>